Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BugFix #41

Closed
wants to merge 2 commits into from
Closed

BugFix #41

wants to merge 2 commits into from

Conversation

Cat0x00
Copy link

@Cat0x00 Cat0x00 commented Jul 10, 2016

The $Word.DisplayAlerts gets defaulted to $False in "infection" phase. That's not valid for newer version of MS Word. I applied (reused code form the beginning of the script) additional check so that it does not throw errors for newer versions of MS Word.

Additionally, some errors where thrown due to missing [ref] while the infected file is being saved in environments with newer MS Word versions. However, this should be further tested in order to verify if it does not require specific checks of MS Word version.

Cat0x00 added 2 commits July 10, 2016 14:04
The $Word.DisplayAlerts is messed up when "infection" is used. Script statically assumes that $Word.DisplayAlerts = $False is the best choice and therefore causes errors in environments where newer word is used. I have fixed this by re-checking the Word version and enabling appropriate $Word.DisplayAlertsvalue.
The $Doc.Saveas causes errors on newer versions of Word. added one more [ref] to fix. However, not sure if it's compatible with all newer (greater than v12) versions. More testing is needed.
@Cat0x00 Cat0x00 changed the title Patch 1 BugFix Jul 10, 2016
@samratashok
Copy link
Owner

Thanks! Testing the patch,

@samratashok samratashok self-assigned this Jul 10, 2016
@Cat0x00
Copy link
Author

Cat0x00 commented Jul 13, 2016

Ping ;]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants